package com.cls.business.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.cls.common.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 通知公告 Entity
 *
 * @author weimaomao
 * @date 2020-11-10 09:36:03
 */
@Data
@TableName("biz_notice")
public class Notice extends BaseEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "notice_id", type = IdType.AUTO)
    private Long noticeId;

    /**
     * 类型
     */
    @TableField("type_code")
    private String typeCode;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 附件
     */
    @TableField("file_id")
    private Long fileId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 是否发布
     */
    @TableField(value = "is_publish")
    private Boolean isPublish;


    @TableField(value = "year")
    private String year;

    /**
     * 发布时间
     */
    @TableField(value = "publish_time")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date publishTime;
    /**
     * 征集开始时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date selectBeginTime;

    /**
     * 征集结束时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date selectEndTime;
    /**
     * 提交开始时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date submitBeginTime;
    /**
     * 意向表提交结束时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date intentionSubmitEndTime;
    /**
     * 申请表提交结束时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date applySubmitEndTime;


    /**
     * 拟立项结束时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date preItemEndTime;


    /**
     * 拟立项开始时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date preItemBeginTime;



    @TableField(exist = false)
    private String period;

    /**
     * 期次
     */
    @TableField(exist = false)
    private String planNo;

}
